package com.farm.farming.service;

import com.farm.entity.PageResult;
import com.farm.farming.pojo.Cust_role;

import java.util.List;

public interface Cust_roleService {

    // c
    int  add(Cust_role cust_role,Integer[] menuIds,Integer[] permission);
    // r
    int delete(Integer id);
    // u
    int update(Cust_role cust_role);
    // d
    List<Cust_role> findAll();

    PageResult<Cust_role> findPage(Cust_role cust_role,Integer page,Integer size);

    Cust_role findById(Integer id);
}
